--- ltmain.sh	2002-11-01 19:56:50.000000000 -0600
+++ ltmain.sh	2002-11-01 19:57:03.000000000 -0600
@@ -4551,6 +4551,8 @@
 	  if test "$installed" = yes && test "$D"; then
 	    install_libdir="`echo "$install_libdir" |sed -e "s:$D::g" -e 's://:/:g'`"
 	  fi
+	  # Removing @REM_INT_DEP@ from dependency_libs in .la
+	  dependency_libs=`echo $dependency_libs | $Xsed -e 's%\([^ ]*lib@REM_INT_DEP@\.\(so\|la\|a\)\)\|\(-l@REM_INT_DEP@\)%%g'`
 	  \$echo > \$output "\\
 # \$outputname - a libtool library file
 # Generated by \$PROGRAM - GNU \$PACKAGE \$VERSION\$TIMESTAMP
